package SOEN_Phase_3;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import junit.framework.TestCase;
import junit.framework.Test;
import junit.framework.Assert;

public class TaskDeletionDialogTest extends TestCase {

	TaskTable tskT = new TaskTable("tasks.xml");
	PersonTable psnT = new PersonTable(tskT);
	TaskDeletionDialog tdd = null;
	
	public void testTaskDeletionDialog()
	{
		 tdd = new TaskDeletionDialog(tskT, psnT);
		 Assert.assertEquals(false, tdd.isVisible());
	}
	public void testActionPerformed()
    {
		tdd = new TaskDeletionDialog(tskT, psnT);
        tdd.actionPerformed(new ActionEvent(new Object(), 0, ""));
        
        Assert.assertEquals(true, tdd.isVisible());
    }
}
